//
//  Status.m
//  HJZWeiBo
//
//  Created by 蒋晨成 on 16/5/27.
//  Copyright © 2016年 蒋晨成. All rights reserved.
//

#import "Status.h"

@implementation Status


- (void)setValue:(id)value forUndefinedKey:(NSString *)key {

}


- (void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"user"]) {
        self.user = [[User alloc] init];
        [self.user setValuesForKeysWithDictionary:value];
        
    }else if ([key isEqualToString:@"retweeted_status"]) {
        
        self.retweeted_status = [[Status alloc] init];
        [self.retweeted_status setValuesForKeysWithDictionary:value];
        
    }else {
        
        [super setValue:value forKey:key];
        
    }
}

@end
